import { RMIProxyObject } from "../../Engine/RMI/RMIProxyObject";
import { ITaskPrx } from "./ITaskPrx";
import { AMI_ITask_KillEvilCanGetInfo } from "./AMI_ITask_KillEvilCanGetInfo";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { Outgoing } from "../../Engine/RMI/Outgoing";
import { AMI_ITask_KillEvilReleaseInfo } from "./AMI_ITask_KillEvilReleaseInfo";
import { AMI_ITask_askForGuildHelp } from "./AMI_ITask_askForGuildHelp";
import { AMI_ITask_buyInsurance } from "./AMI_ITask_buyInsurance";
import { AMI_ITask_cancelTask } from "./AMI_ITask_cancelTask";
import { AMI_ITask_crossEvaluatePartner } from "./AMI_ITask_crossEvaluatePartner";
import { SEntityId } from "../Public/SEntityId";
import { AMI_ITask_crossFindPartner } from "./AMI_ITask_crossFindPartner";
import { AMI_ITask_crossGiveGiftToPartner } from "./AMI_ITask_crossGiveGiftToPartner";
import { AMI_ITask_crossInvitePartner } from "./AMI_ITask_crossInvitePartner";
import { AMI_ITask_crossPartnerReply } from "./AMI_ITask_crossPartnerReply";
import { AMI_ITask_endCycleTask } from "./AMI_ITask_endCycleTask";
import { AMI_ITask_endGuildTask } from "./AMI_ITask_endGuildTask";
import { AMI_ITask_endLoopBookTask } from "./AMI_ITask_endLoopBookTask";
import { AMI_ITask_endTask } from "./AMI_ITask_endTask";
import { AMI_ITask_endTreasureHunt } from "./AMI_ITask_endTreasureHunt";
import { AMI_ITask_evaluatePartner } from "./AMI_ITask_evaluatePartner";
import { AMI_ITask_findPartner } from "./AMI_ITask_findPartner";
import { AMI_ITask_flushLoopBookTaskColor } from "./AMI_ITask_flushLoopBookTaskColor";
import { AMI_ITask_flushSchoolTask } from "./AMI_ITask_flushSchoolTask";
import { AMI_ITask_flushTransportColor } from "./AMI_ITask_flushTransportColor";
import { AMI_ITask_getGuildTask } from "./AMI_ITask_getGuildTask";
import { AMI_ITask_getKillEvilTask } from "./AMI_ITask_getKillEvilTask";
import { AMI_ITask_getLoopBookTask } from "./AMI_ITask_getLoopBookTask";
import { AMI_ITask_getTask } from "./AMI_ITask_getTask";
import { AMI_ITask_giveGiftToPartner } from "./AMI_ITask_giveGiftToPartner";
import { AMI_ITask_invitePartner } from "./AMI_ITask_invitePartner";
import { AMI_ITask_npcTask } from "./AMI_ITask_npcTask";
import { AMI_ITask_openCycleTask } from "./AMI_ITask_openCycleTask";
import { AMI_ITask_openFirstChangeCareerTask } from "./AMI_ITask_openFirstChangeCareerTask";
import { AMI_ITask_openGuildTask } from "./AMI_ITask_openGuildTask";
import { AMI_ITask_openLoopBookTask } from "./AMI_ITask_openLoopBookTask";
import { AMI_ITask_openSchoolTask } from "./AMI_ITask_openSchoolTask";
import { AMI_ITask_openTransport } from "./AMI_ITask_openTransport";
import { AMI_ITask_openTreasureHunt } from "./AMI_ITask_openTreasureHunt";
import { AMI_ITask_openTreasureMap } from "./AMI_ITask_openTreasureMap";
import { AMI_ITask_partnerReply } from "./AMI_ITask_partnerReply";
import { AMI_ITask_quickCompleteTask } from "./AMI_ITask_quickCompleteTask";
import { AMI_ITask_releaseKillEvilTask } from "./AMI_ITask_releaseKillEvilTask";
import { AMI_ITask_startTransport } from "./AMI_ITask_startTransport";
import { AMI_ITask_startTreasureHunt } from "./AMI_ITask_startTreasureHunt";
import { AMI_ITask_talkToNpc } from "./AMI_ITask_talkToNpc";
import { AMI_ITask_talkToTransportNpc } from "./AMI_ITask_talkToTransportNpc";
import { AMI_ITask_taskInfo } from "./AMI_ITask_taskInfo";
import { AMI_ITask_transportTaskInfo } from "./AMI_ITask_transportTaskInfo";
import { AMI_ITask_treasureHuntHelp } from "./AMI_ITask_treasureHuntHelp";
type int = number;
//class ITaskPrxHelper
    
    export  class ITaskPrxHelper extends RMIProxyObject implements ITaskPrx
    {
        constructor()
        {
            
            super();name = "ITask";
            return;
        }

        public KillEvilCanGetInfo_async(arg1: AMI_ITask_KillEvilCanGetInfo): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("KillEvilCanGetInfo");
            var loc3=new SerializeStream();
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public KillEvilReleaseInfo_async(arg1: AMI_ITask_KillEvilReleaseInfo): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("KillEvilReleaseInfo");
            var loc3=new SerializeStream();
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public askForGuildHelp_async(arg1: AMI_ITask_askForGuildHelp): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("askForGuildHelp");
            var loc3=new SerializeStream();
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public buyInsurance_async(arg1: AMI_ITask_buyInsurance, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("buyInsurance");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public cancelTask_async(arg1: AMI_ITask_cancelTask, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("cancelTask");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public crossEvaluatePartner_async(arg1: AMI_ITask_crossEvaluatePartner, arg2: SEntityId, arg3: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("crossEvaluatePartner");
            var loc3=new SerializeStream();
            arg2.__write(loc3);
            loc3.writeInt(arg3);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public crossFindPartner_async(arg1: AMI_ITask_crossFindPartner, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("crossFindPartner");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public crossGiveGiftToPartner_async(arg1: AMI_ITask_crossGiveGiftToPartner, arg2: SEntityId, arg3: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("crossGiveGiftToPartner");
            var loc3=new SerializeStream();
            arg2.__write(loc3);
            loc3.writeInt(arg3);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public crossInvitePartner_async(arg1: AMI_ITask_crossInvitePartner, arg2: SEntityId): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("crossInvitePartner");
            var loc3=new SerializeStream();
            arg2.__write(loc3);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public crossPartnerReply_async(arg1: AMI_ITask_crossPartnerReply, arg2: SEntityId, arg3: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("crossPartnerReply");
            var loc3=new SerializeStream();
            arg2.__write(loc3);
            loc3.writeInt(arg3);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public endCycleTask_async(arg1: AMI_ITask_endCycleTask, arg2: int, arg3: int, arg4: Boolean): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("endCycleTask");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            loc3.writeInt(arg3);
            loc3.writeBool(arg4);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public endGuildTask_async(arg1: AMI_ITask_endGuildTask, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("endGuildTask");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public endLoopBookTask_async(arg1: AMI_ITask_endLoopBookTask): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("endLoopBookTask");
            var loc3=new SerializeStream();
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public endTask_async(arg1: AMI_ITask_endTask, arg2: int, arg3: int, arg4: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("endTask");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            loc3.writeInt(arg3);
            loc3.writeInt(arg4);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public endTreasureHunt_async(arg1: AMI_ITask_endTreasureHunt): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("endTreasureHunt");
            var loc3=new SerializeStream();
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public evaluatePartner_async(arg1: AMI_ITask_evaluatePartner, arg2: int, arg3: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("evaluatePartner");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            loc3.writeInt(arg3);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public findPartner_async(arg1: AMI_ITask_findPartner, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("findPartner");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public flushLoopBookTaskColor_async(arg1: AMI_ITask_flushLoopBookTaskColor, arg2: Boolean, arg3: int, arg4: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("flushLoopBookTaskColor");
            var loc3;
            (loc3 = new SerializeStream()).writeBool(arg2);
            loc3.writeInt(arg3);
            loc3.writeInt(arg4);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public flushSchoolTask_async(arg1: AMI_ITask_flushSchoolTask, arg2: int, arg3: int, arg4: Boolean): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("flushSchoolTask");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            loc3.writeInt(arg3);
            loc3.writeBool(arg4);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public flushTransportColor_async(arg1: AMI_ITask_flushTransportColor, arg2: Boolean, arg3: int, arg4: int, arg5: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("flushTransportColor");
            var loc3;
            (loc3 = new SerializeStream()).writeBool(arg2);
            loc3.writeInt(arg3);
            loc3.writeInt(arg4);
            loc3.writeInt(arg5);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public getGuildTask_async(arg1: AMI_ITask_getGuildTask, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("getGuildTask");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public getKillEvilTask_async(arg1: AMI_ITask_getKillEvilTask, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("getKillEvilTask");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public getLoopBookTask_async(arg1: AMI_ITask_getLoopBookTask): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("getLoopBookTask");
            var loc3=new SerializeStream();
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public getTask_async(arg1: AMI_ITask_getTask, arg2: int, arg3: int, arg4: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("getTask");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            loc3.writeInt(arg3);
            loc3.writeInt(arg4);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public giveGiftToPartner_async(arg1: AMI_ITask_giveGiftToPartner, arg2: int, arg3: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("giveGiftToPartner");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            loc3.writeInt(arg3);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public invitePartner_async(arg1: AMI_ITask_invitePartner, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("invitePartner");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public npcTask_async(arg1: AMI_ITask_npcTask, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("npcTask");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public openCycleTask_async(arg1: AMI_ITask_openCycleTask): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("openCycleTask");
            var loc3=new SerializeStream();
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public openFirstChangeCareerTask_async(arg1: AMI_ITask_openFirstChangeCareerTask, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("openFirstChangeCareerTask");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public openGuildTask_async(arg1: AMI_ITask_openGuildTask, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("openGuildTask");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public openLoopBookTask_async(arg1: AMI_ITask_openLoopBookTask): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("openLoopBookTask");
            var loc3=new SerializeStream();
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public openSchoolTask_async(arg1: AMI_ITask_openSchoolTask, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("openSchoolTask");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public openTransport_async(arg1: AMI_ITask_openTransport, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("openTransport");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public openTreasureHunt_async(arg1: AMI_ITask_openTreasureHunt, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("openTreasureHunt");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public openTreasureMap_async(arg1: AMI_ITask_openTreasureMap, arg2: string): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("openTreasureMap");
            var loc3;
            (loc3 = new SerializeStream()).writeString(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public partnerReply_async(arg1: AMI_ITask_partnerReply, arg2: int, arg3: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("partnerReply");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            loc3.writeInt(arg3);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public quickCompleteTask_async(arg1: AMI_ITask_quickCompleteTask, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("quickCompleteTask");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public releaseKillEvilTask_async(arg1: AMI_ITask_releaseKillEvilTask, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("releaseKillEvilTask");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public startTransport_async(arg1: AMI_ITask_startTransport, arg2: int, arg3: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("startTransport");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            loc3.writeInt(arg3);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public startTreasureHunt_async(arg1: AMI_ITask_startTreasureHunt, arg2: string): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("startTreasureHunt");
            var loc3;
            (loc3 = new SerializeStream()).writeString(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public talkToNpc_async(arg1: AMI_ITask_talkToNpc, arg2: int, arg3: int, arg4: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("talkToNpc");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            loc3.writeInt(arg3);
            loc3.writeInt(arg4);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public talkToTransportNpc_async(arg1: AMI_ITask_talkToTransportNpc, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("talkToTransportNpc");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public taskInfo_async(arg1: AMI_ITask_taskInfo, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("taskInfo");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public transportTaskInfo_async(arg1: AMI_ITask_transportTaskInfo): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("transportTaskInfo");
            var loc3=new SerializeStream();
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public treasureHuntHelp_async(arg1: AMI_ITask_treasureHuntHelp, arg2: int): void
        {
            var loc1=makeContext(session);
            var loc2=makeCall("treasureHuntHelp");
            var loc3;
            (loc3 = new SerializeStream()).writeInt(arg2);
            Outgoing.invokeAsync(loc1, loc2, loc3, arg1);
            return;
        }

        public static /* const */NAME: string="Message.Game.ITask";
    }
